package com.xuelang.pipeline.infrastructure.pipeline.converter;

import com.xuelang.pipeline.domain.pipeline.ChangeMgmt;
import com.xuelang.pipeline.infrastructure.pipeline.dataobject.ChangeMgmtDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * <p>组件变更管理DO转换器</p>
 *
 * @author : yixin.lys
 * @date : 2024-08-02 11:51
 **/
@Mapper
public interface ChangeMgmtToDOConverter {

    ChangeMgmtToDOConverter INSTANCE = Mappers.getMapper(ChangeMgmtToDOConverter.class);

    /**
     * 从DO转换
     * @param target
     * @return
     */
    ChangeMgmt fromDO(ChangeMgmtDO target);

    /**
     * 转换为DO
     * @param target
     * @return
     */
    ChangeMgmtDO toDO(ChangeMgmt target);

}
